﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<NamAn_PPMv2.Models.LogOnModel>" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Đoàn Văn Thành" />

    <title>Đăng nhập</title>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
        <script type="text/javascript" src="../../bootstrap/js/html5shiv.js"></script>
    <![endif]-->
    
    <link rel="stylesheet" type="text/css" href="<%= Url.Content("~/bootstrap/css/bootstrap.css") %>" />
    <link rel="stylesheet" type="text/css" href="<%= Url.Content("~/bootstrap/css/bootstrap-responsive.css") %>" />
    <link rel="stylesheet" type="text/css" href="<%= Url.Content("~/Content/Site.css") %>" />    
</head>
<body>
    <% using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { @class = "form-signin", @Style="margin-top:50px;" }))
       { %>            
            <div style="text-align: center;">
                <h3 class="form-signin-heading" style="color: #006699">
                    Đăng nhập vào hệ thống
                </h3>
            </div>

            <% = Html.ValidationSummary(false, null, new { @class = "alert alert-error" })%>

            <div >
                <% = Html.LabelFor(p => p.UserName) %>                
                <% = Html.TextBoxFor(p => p.UserName, new { @class = "input-block-level" })%>

                <% = Html.Label("Mật khẩu") %>                
                <% = Html.PasswordFor(p => p.Password, new { @class = "input-block-level" })%>

                <label class="checkbox">
                    <% = Html.CheckBoxFor(m => m.RememberMe) %>
                    Ghi nhớ đăng nhập.
                </label>
                
                <input class="btn btn-large btn-block btn-primary" type="submit" value="Đăng nhập" />
            </div>
    <% } %>
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/kendo/2012.3.1315/jquery.min.js") %>"></script>
    <script type="text/javascript" src="<%= Url.Content("~/bootstrap/js/bootstrap.js") %>"></script>
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/jquery.validate.min.js") %>"></script>
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"></script>    
</body>
</html>
